TreeGridLoaded ({ /* JSONP header, to be possible to load from xxx_Jsonp data source */ 
   "Cfg" : { "id": "CalcTree", "MainCol": "N", "NoVScroll": "1", "NoHScroll": "1"   }, 
   "Cols" : [ 
      { "Name": "N", "Type": "Text"   }, 
      { "Name": "X", "Type": "Int"   }, 
      { "Name": "Y", "Type": "Int"   }, 
      { "Name": "A", "Type": "Int", "Formula": "X*Y", "Width": "65"   }  
   ], 
   "Header" : { "A": "A=X*Y", "SortIcons": "2"   }, 
   "Panel" : { "Select": "0"   }, 
   "Def" : [ 
      { "Name": "Tree", "Calculated": "1", "NFormula": "\"count = \"+count()", "XFormula": "sum()", "XFormat": "\"sum = \"0", "YFormula": "sum()", "YFormat": "\"sum = \"0", "CalcOrder": "N,X,Y,A"   }  
   ], 
   "Body" : [ 
      [ 
         { "Def": "Tree", "Items": [
            { "N": "1-1", "X": "10", "Y": "1"   }, 
            { "N": "1-2", "X": "3", "Y": "4"   }  
         ]}, 
         { "Def": "Tree", "Items": [
	         { "Def": "Tree", "Items": [
               { "N": "2-1-1", "X": "12", "Y": "8"   }, 
               { "N": "2-1-2", "X": "7", "Y": "-8"   }  
	         ]}, 
            { "Def": "Tree", "Items": [
               { "N": "2-2-1", "X": "2", "Y": "9"   }  
            ]}, 
            { "N": "2-1", "X": "3", "Y": "6"   }, 
            { "N": "2-2", "X": "0", "Y": "5"   }  
         ]}, 
      ], 
   ], 
   "Foot" : [ 
      { "Def": "Tree"   }  
   ], 
}) /* End of JSONP header */ 